class Soldier:
	def __init__(self,name,age):
		self.name=name;
		self.age=age;
	
	def __eq__(self,other):
		return self.name==other.name;
	
	def __gt__(self,other):
		return self.age>other.age;
		
	def __str__(self):
		return self.name;
		
	def __ne__(self,other):
		return self.name!=other.name;
	
	def __lt__(self,other):
		return self.age<other.age;
		
x=Soldier("hu",28);
y=Soldier("hu",30);
print(x,"=",y,":",x==y);
print(x,">",y,":",x>y);

print(x,"<",y,":",x<y);
print(x,"!=",y,":",x!=y);
